package homework01;

public class Account {
	private int balance;

	public int getBalance() {
		return balance;
	}

	public void setBalance(int balance) {
		this.balance = balance;
	}

	public Account(int balance) {
		this.balance = balance;
	}

	public void geBalance() {
		this.balance = 0;
	}

	public void deposit(int deposit) {
		this.balance += deposit;
		System.out.println("Ok" + this.balance);
	}

	public void withdraw(int withdraw) {
		this.balance -= withdraw;
		if (this.balance < 0) {
			System.out.println("so poor,man");
		} else {
			System.out.println("Ok" + this.balance);
		}
	}

}
